package com.lvmama.rhino.pojo.comment.entity;

import java.io.Serializable;

/**
 * @Author:caoyong
 * @Description:点评趋势
 * @Date：2017/9/18
 */
public class CommentTendency implements Serializable{
    private static final long serialVersionUID = -6037345576199623237L;
    /**
     * 月份
     */
    private String month;

    /**
     * 点评所占百分比
     */
    private Float rate;

    /**
     * 点评类型(好评，中评，差评)
     */
    private String type;

    private String monthCode;

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public Float getRate() {
        return rate;
    }

    public void setRate(Float rate) {
        this.rate = rate;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMonthCode() {
        return monthCode;
    }

    public void setMonthCode(String monthCode) {
        this.monthCode = monthCode;
    }

    @Override
    public String toString() {
        return "CommentTendency{" +
                "month='" + month + '\'' +
                ", rate=" + rate +
                ", type='" + type + '\'' +
                ", monthCode='" + monthCode + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CommentTendency that = (CommentTendency) o;

        if (month != null ? !month.equals(that.month) : that.month != null) return false;
        return type != null ? type.equals(that.type) : that.type == null;
    }

    @Override
    public int hashCode() {
        int result = month != null ? month.hashCode() : 0;
        result = 31 * result + (type != null ? type.hashCode() : 0);
        return result;
    }
}
